<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: Filesystem</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__filesystem.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Filesystem<div class="ingroups"><a class="el" href="group__util.html">Utilities Library (jetson-utils)</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>network Networking TCP/UDP sockets and IP address manipulation.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga2cc7cb09746b8181f3389dfee1113f78"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#ga2cc7cb09746b8181f3389dfee1113f78">absolutePath</a> (const std::string &amp;relative_path)</td></tr>
<tr class="memdesc:ga2cc7cb09746b8181f3389dfee1113f78"><td class="mdescLeft">&#160;</td><td class="mdescRight">Given a relative path, resolve the absolute path based on the location of the process that calls the function.  <a href="#ga2cc7cb09746b8181f3389dfee1113f78">More...</a><br /></td></tr>
<tr class="separator:ga2cc7cb09746b8181f3389dfee1113f78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga09605d11f78fcd2d936793371d1c2ccc"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#ga09605d11f78fcd2d936793371d1c2ccc">locateFile</a> (const std::string &amp;path)</td></tr>
<tr class="memdesc:ga09605d11f78fcd2d936793371d1c2ccc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a list of all the files in the specified directory.  <a href="#ga09605d11f78fcd2d936793371d1c2ccc">More...</a><br /></td></tr>
<tr class="separator:ga09605d11f78fcd2d936793371d1c2ccc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0209cabb0f62f9cfec99a763b5a0bbd1"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#ga0209cabb0f62f9cfec99a763b5a0bbd1">locateFile</a> (const std::string &amp;path, std::vector&lt; std::string &gt; &amp;locations)</td></tr>
<tr class="memdesc:ga0209cabb0f62f9cfec99a763b5a0bbd1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Locate a file from a set of locations provided by the user, in addition to common system locations such as "/opt" and "/usr/local".  <a href="#ga0209cabb0f62f9cfec99a763b5a0bbd1">More...</a><br /></td></tr>
<tr class="separator:ga0209cabb0f62f9cfec99a763b5a0bbd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa032b1df8daa37cc992f30f7b0bf29a7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#gaa032b1df8daa37cc992f30f7b0bf29a7">fileExists</a> (const char *path, bool regularFilesOnly=false)</td></tr>
<tr class="memdesc:gaa032b1df8daa37cc992f30f7b0bf29a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Verify path and return true if the file exists.  <a href="#gaa032b1df8daa37cc992f30f7b0bf29a7">More...</a><br /></td></tr>
<tr class="separator:gaa032b1df8daa37cc992f30f7b0bf29a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1cce1a89b61cff6664fee0bb89fa2ee9"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#ga1cce1a89b61cff6664fee0bb89fa2ee9">fileSize</a> (const char *path)</td></tr>
<tr class="memdesc:ga1cce1a89b61cff6664fee0bb89fa2ee9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the size (in bytes) of the specified file.  <a href="#ga1cce1a89b61cff6664fee0bb89fa2ee9">More...</a><br /></td></tr>
<tr class="separator:ga1cce1a89b61cff6664fee0bb89fa2ee9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9d60da122af0d3e44fe78b4ac73444a1"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#ga9d60da122af0d3e44fe78b4ac73444a1">filePath</a> (const std::string &amp;filename)</td></tr>
<tr class="memdesc:ga9d60da122af0d3e44fe78b4ac73444a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extract the path out of the supplied string, removing the filename and extension For example, <code>filePath("~/user/somefile.xml")</code> would return <code>~/user</code>  <a href="#ga9d60da122af0d3e44fe78b4ac73444a1">More...</a><br /></td></tr>
<tr class="separator:ga9d60da122af0d3e44fe78b4ac73444a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga45ff5e488382fe54d24f27d340fcb5d2"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#ga45ff5e488382fe54d24f27d340fcb5d2">fileExtension</a> (const std::string &amp;path)</td></tr>
<tr class="memdesc:ga45ff5e488382fe54d24f27d340fcb5d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Extract the file extension from the path.  <a href="#ga45ff5e488382fe54d24f27d340fcb5d2">More...</a><br /></td></tr>
<tr class="separator:ga45ff5e488382fe54d24f27d340fcb5d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaad68e41c1ebdc261ba49694e18eb8d15"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#gaad68e41c1ebdc261ba49694e18eb8d15">fileRemoveExtension</a> (const std::string &amp;filename)</td></tr>
<tr class="memdesc:gaad68e41c1ebdc261ba49694e18eb8d15"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the input string with the file extension removed For example, <code>strRemoveExtension("~/user/somefile.xml")</code> would return <code>~/user/somefile</code>.  <a href="#gaad68e41c1ebdc261ba49694e18eb8d15">More...</a><br /></td></tr>
<tr class="separator:gaad68e41c1ebdc261ba49694e18eb8d15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac5d5187920a9c4e1743dbd0b57ea8294"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#gac5d5187920a9c4e1743dbd0b57ea8294">fileChangeExtension</a> (const std::string &amp;filename, const std::string &amp;newExtension)</td></tr>
<tr class="memdesc:gac5d5187920a9c4e1743dbd0b57ea8294"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the input string with a changed file extension For example, <code>strChangeExtension("~/user/somefile.xml", "zip")</code> would return <code>~/user/somefile.zip</code>.  <a href="#gac5d5187920a9c4e1743dbd0b57ea8294">More...</a><br /></td></tr>
<tr class="separator:gac5d5187920a9c4e1743dbd0b57ea8294"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad5f5bdf6b25f89fe18d5e93191cb1fd5"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#gad5f5bdf6b25f89fe18d5e93191cb1fd5">processPath</a> ()</td></tr>
<tr class="memdesc:gad5f5bdf6b25f89fe18d5e93191cb1fd5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the absolute path that of the calling process executable, include the process executable's filename.  <a href="#gad5f5bdf6b25f89fe18d5e93191cb1fd5">More...</a><br /></td></tr>
<tr class="separator:gad5f5bdf6b25f89fe18d5e93191cb1fd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga57173fd6b52c0927a912961347c21ac9"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#ga57173fd6b52c0927a912961347c21ac9">processDirectory</a> ()</td></tr>
<tr class="memdesc:ga57173fd6b52c0927a912961347c21ac9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the directory that the calling process resides in.  <a href="#ga57173fd6b52c0927a912961347c21ac9">More...</a><br /></td></tr>
<tr class="separator:ga57173fd6b52c0927a912961347c21ac9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7587e5be3b694cbb4d0003eeb64ed365"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__filesystem.html#ga7587e5be3b694cbb4d0003eeb64ed365">workingDirectory</a> ()</td></tr>
<tr class="memdesc:ga7587e5be3b694cbb4d0003eeb64ed365"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the current working directory of the calling process.  <a href="#ga7587e5be3b694cbb4d0003eeb64ed365">More...</a><br /></td></tr>
<tr class="separator:ga7587e5be3b694cbb4d0003eeb64ed365"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>network Networking TCP/UDP sockets and IP address manipulation. </p>
<p>Functions for listing files in directories and manipulating file paths. </p>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga2cc7cb09746b8181f3389dfee1113f78"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2cc7cb09746b8181f3389dfee1113f78">&#9670;&nbsp;</a></span>absolutePath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string absolutePath </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>relative_path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Given a relative path, resolve the absolute path based on the location of the process that calls the function. </p>
<p>For example, if the application is located at "/home/user/my_process" and <code>absolutePath("resources/example")</code> is called, then this function would return the path "/home/user/resources/example". </p>

</div>
</div>
<a id="gac5d5187920a9c4e1743dbd0b57ea8294"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac5d5187920a9c4e1743dbd0b57ea8294">&#9670;&nbsp;</a></span>fileChangeExtension()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string fileChangeExtension </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>newExtension</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the input string with a changed file extension For example, <code>strChangeExtension("~/user/somefile.xml", "zip")</code> would return <code>~/user/somefile.zip</code>. </p>

</div>
</div>
<a id="gaa032b1df8daa37cc992f30f7b0bf29a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa032b1df8daa37cc992f30f7b0bf29a7">&#9670;&nbsp;</a></span>fileExists()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool fileExists </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>regularFilesOnly</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Verify path and return true if the file exists. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">regularFilesOnly</td><td>If false (which is the default), then <a class="el" href="group__filesystem.html#gaa032b1df8daa37cc992f30f7b0bf29a7" title="Verify path and return true if the file exists. ">fileExists()</a> includes filesystem entries like directories, device files, and sockets when verifying the path.</td></tr>
  </table>
  </dd>
</dl>
<p>If regularFilesOnly parameter is true, then <a class="el" href="group__filesystem.html#gaa032b1df8daa37cc992f30f7b0bf29a7" title="Verify path and return true if the file exists. ">fileExists()</a> will verify the path is to a readable, "regular" file. Other file types (for example directories) will result in <a class="el" href="group__filesystem.html#gaa032b1df8daa37cc992f30f7b0bf29a7" title="Verify path and return true if the file exists. ">fileExists()</a> returning false. </p>

</div>
</div>
<a id="ga45ff5e488382fe54d24f27d340fcb5d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga45ff5e488382fe54d24f27d340fcb5d2">&#9670;&nbsp;</a></span>fileExtension()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string fileExtension </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Extract the file extension from the path. </p>
<p>This function will return all contents of the path to the right of the right-most `'.'` The extension will be returned in all lowercase characters. </p>

</div>
</div>
<a id="ga9d60da122af0d3e44fe78b4ac73444a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9d60da122af0d3e44fe78b4ac73444a1">&#9670;&nbsp;</a></span>filePath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string filePath </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Extract the path out of the supplied string, removing the filename and extension For example, <code>filePath("~/user/somefile.xml")</code> would return <code>~/user</code> </p>

</div>
</div>
<a id="gaad68e41c1ebdc261ba49694e18eb8d15"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaad68e41c1ebdc261ba49694e18eb8d15">&#9670;&nbsp;</a></span>fileRemoveExtension()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string fileRemoveExtension </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the input string with the file extension removed For example, <code>strRemoveExtension("~/user/somefile.xml")</code> would return <code>~/user/somefile</code>. </p>

</div>
</div>
<a id="ga1cce1a89b61cff6664fee0bb89fa2ee9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1cce1a89b61cff6664fee0bb89fa2ee9">&#9670;&nbsp;</a></span>fileSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t fileSize </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the size (in bytes) of the specified file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>the path of the file </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>if successful, the size of the file in bytes otherwise, 0 will be returned. </dd></dl>

</div>
</div>
<a id="ga09605d11f78fcd2d936793371d1c2ccc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga09605d11f78fcd2d936793371d1c2ccc">&#9670;&nbsp;</a></span>locateFile() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string locateFile </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return a list of all the files in the specified directory. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>the path of the directory </td></tr>
    <tr><td class="paramname">list</td><td>the output list of all files in the directory </td></tr>
    <tr><td class="paramname">includePath</td><td>if true, the list of filenames will be prefixed with the path if false (default), the list of filenames will contain filenames/extensions only Locate a file from common system locations. First, this function will check if the file exists at the path provided, and if not it will check for the existance of the file in common system locations such as "/opt", "/usr/local", and "/usr/local/bin".</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the confirmed path of the located file, or empty string if the file could not be found </dd></dl>

</div>
</div>
<a id="ga0209cabb0f62f9cfec99a763b5a0bbd1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0209cabb0f62f9cfec99a763b5a0bbd1">&#9670;&nbsp;</a></span>locateFile() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string locateFile </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::string &gt; &amp;&#160;</td>
          <td class="paramname"><em>locations</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Locate a file from a set of locations provided by the user, in addition to common system locations such as "/opt" and "/usr/local". </p>
<dl class="section return"><dt>Returns</dt><dd>the confirmed path of the located file, or empty string if the file could not be found </dd></dl>

</div>
</div>
<a id="ga57173fd6b52c0927a912961347c21ac9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga57173fd6b52c0927a912961347c21ac9">&#9670;&nbsp;</a></span>processDirectory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string processDirectory </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the directory that the calling process resides in. </p>
<p>For example, if the process executable is located at <code>/usr/bin/exe</code>, then <code><a class="el" href="group__filesystem.html#ga57173fd6b52c0927a912961347c21ac9" title="Return the directory that the calling process resides in. ">processDirectory()</a></code> would return the path <code>/usr/bin</code>.</p>
<dl class="section note"><dt>Note</dt><dd>to retrieve the full path of the calling process, including the process executable's filename, </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="group__filesystem.html#gad5f5bdf6b25f89fe18d5e93191cb1fd5" title="Return the absolute path that of the calling process executable, include the process executable&#39;s fil...">processPath()</a> </dd></dl>

</div>
</div>
<a id="gad5f5bdf6b25f89fe18d5e93191cb1fd5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad5f5bdf6b25f89fe18d5e93191cb1fd5">&#9670;&nbsp;</a></span>processPath()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string processPath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the absolute path that of the calling process executable, include the process executable's filename. </p>

</div>
</div>
<a id="ga7587e5be3b694cbb4d0003eeb64ed365"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7587e5be3b694cbb4d0003eeb64ed365">&#9670;&nbsp;</a></span>workingDirectory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string workingDirectory </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return the current working directory of the calling process. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Thu Sep 26 2019 12:19:11 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
